package records

import (
	"github.com/golib/mysql"
)

const RecordNameOnlineUserInfo = "online_user_info"

func init() {
	var r = &OnlineUserInfo{}
	mysql.RegisterRecord(r.Name(), r)
}

type OnlineUserInfo struct {
	UserId     int    `json:"userId" form:"userId" column:"user_id" primary:"true" modify:"false"`
	Mobile     int    `json:"mobile" form:"mobile" column:"mobile" modify:"true"`
	UserName   string `form:"userName" column:"user_name" modify:"true" json:"userName"`
	Password   string `json:"password" form:"password" column:"password" modify:"true"`
	Headphoto  string `form:"headphoto" column:"headphoto" modify:"true" json:"headphoto"`
	Actor      int    `column:"actor" modify:"true" json:"actor" form:"actor"`
	CreateTime string `column:"create_time" modify:"false" json:"createTime" form:"createTime"`
	UpdateTime string `form:"updateTime" column:"update_time" modify:"false" json:"updateTime"`
}

func (r *OnlineUserInfo) Name() string {
	return RecordNameOnlineUserInfo
}
